/*
 * @Author: 陈昌俊
 * @Date: 2021-08-06 17:25:51
 * @LastEditTime: 2021-11-14 15:31:38
 * @LastEditors: 杨超
 * @Description: 
 */
import CommonApi from './common'

// 巡查内容
class InspectResultApi extends CommonApi {
    constructor() {
        super()
        this.scope = 'inspectResult'
    }
    // 添加处理记录
    submitFlawRecord(data) {
        const path = this.resolvePath('/deal')
        return this.post(path, data)
    }

    // 获取任务处理记录
    getTaskRecord(data) {
        const path = this.resolvePath('/detailsByTaskId')
        return this.post(path, data)
    }

    // 获取计划处理记录
    getPlanInspections(data) {
        const path = this.resolvePath('/byPlanList')
        return this.post(path, data)
    }

    // 获添加机电设备缺陷
    addDeviceInspection(data) {
        const path = this.resolvePath('/addDeviceInspectionResult')
        return this.post(path, data)
    }
}

export default InspectResultApi
